﻿namespace Digitalmes.Scada.Models;

/// <summary>
/// 关键物料扫码请求参数
/// </summary>
internal sealed class ScanInput
{
    /// <summary>
    /// 线体编号
    /// </summary>
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 工位编号
    /// </summary>
    [NotNull]
    public string? OpCode { get; set; }

    /// <summary>
    /// 物料条码
    /// </summary>
    [NotNull]
    public string? Barcode { get; set; }

    /// <summary>
    /// 上料步序，为 0 表示不使用步序。
    /// </summary>
    public int Step { get; set; }
}
